package main

import "fmt"

func add(a int, b int) int {
	var c int = a + b
	return c
}

func realAdd(a *int, b *int) int {
	var c int = *a + *b
	*a = 5
	*b = 10
	return c
}
func main() {
	var a, b int
	a = 3
	b = 3
	fmt.Println("a+b=", add(a, b))
	fmt.Println("修改a,b的值")
	fmt.Println("a+b=", realAdd(&a, &b))
	fmt.Println("a=", a, "b=", b)

}
